import 'package:flutter/cupertino.dart';

import '../../../model/api.dart';
import '../../../model/circle_data.dart';

class CircleViewModel with ChangeNotifier {
  List<CircleData?>? circleList;

  // 获取circle侧边栏数据
  Future getCircle() async {
    List<CircleData>? list = await Api.instance.getCircleListData();
    circleList = list ?? [];
    notifyListeners();
  }
}